Added feature to allow remaining tests to be written to file