tests using common test
parameterise port number