tests: update expected errors in serialization tests