Improving test execution speed and exception handling