refactor tests to use run()