[WIP] Adding assert for type and tag

Implements `assertWrappedElement` to check for correct wrapped element in typified elements.

Closes #53 
The assertion of the correct node fetches the tag name which was not done before.