added tests and code for timing file generation.