#2 Refactor tests to use a file stream to test instead of wrapping every single file operation just to test.