get write tests passing on travis