fix tests on unix/mac, using non-protected port
moved to integration tests and added fix for macos
added integration tests into gradle