Added tests to the writers