Fixed an issue when writing fragments and trying to check for a tag name on a fragment.
Removed extra method for preparing html
Added a bunch of serializer tests to test fragments.