added working test for authentication