added more tests for authentication