Fixing tests for SHDP-138

Tests are now waiting/polling port from appmaster service.
Framework using this functionality is actually waiting
server socket port to bind so I believe it's ok for tests
to do same thing.