more report reader and writer tests; bugfixes