completed write test spec