test_admin: fix test due to broken mocks