moved assert helper to separate file, implemented tests for item record writer
moved configuration to outer scope
added tests for delimiter at end of records and header