added new tests for the writers