Add auth unittests