Rewriting TestCase