wrote the tests