Fix serialization test error message
Fix model specification used for mocha tests