Adding tests for :binary
Change output-test to use createTempFile instead of writing to test files directory