Specify port for the test api

...and give a callback to log connection to console. 
Previously, the tests would fail if the engine were running, due to using default ports for the api initialization. 
Tests now pass regardless of engine state.