Bunch of tests for the auth middleware