feat(run): module refactor and improvements, add test cases