Made test for methods in AdminControllerTests.cs