Move test runner to separate file