More tests for bad elements and attributes.