Refactor test helper methods.
Move pip install log file into sub project.