add tests for custom readers/writers