Added tests for the new authentication