minor refactoring: new Capacity::Test class