improvements in TestCase & Resource classes