This tests that modifying location.port works as it should