fixing auth unit tests