Added basic writer tests.