Updating test to use is to test element type. Added test to ensure attributes and content are converted
Adding tests to ensure swapping doesn't munge children