refactoring run test