use host and port from config in api test