fixed serializer tests
implementation for HtmlSerializer.serializeModel