test(admin): added a unit test to admin module