Added reader and writer tests.