Fix for auth header when testing api