adding gradle wrapper and some minor unit test changes (custom ports)