Adds more authentication test and user code to pass the test