increase test coverage for admin controller

Minor bug fixes