Adding write tests.