[#858] Move test file creation helper functions to pydevtest_common.py