adding functional tests for authentication