added tests for authentication. #196