[test] major refactor of tests w/ file IO
[test/helpers] forgot to commit test helpers