added check for test.port system property