Convert test case for at_modules() to UnitTest.