provided function in common test for the creation of temporary files; fixed #6