moved file i/o back into the test