test: Remove obsolete helper methods
test: Define port numbers for testing at first