catch exception in every test method