fix bug in test execution