added tests for result writers