put run tests to try..except block