added test args and get port through arg