modified unit tests to allow for authentication, made teardown of unit tests friendlier to server