Made some tests for user authentication