Added some extra tests for authentication