In the JAuthentication unit tests we are modifying the server variables. As in other tests to make the tests independent of each other we should be saving the $_SERVER superglobal before modification and restoring it at the end of each test in order to make the tests as standalone as possible