Use 'build' task not 'assemble' in 'primaryBuild' task, which will trigger any unit tests as they are added.
Re-remove the 'localhost' configuration from the post-config install step: this is now done as part of testing. The HWS install really shouldn't make assumptions about where p4d is, unless we decide to ask for it somehow.