Adding test for setAuthHeader