test(admin): refactored and fixed admin tests