unit tests for auth module