added guard around TestCase