Fix message in tests: written instead of writted