creating the functional test for authentication