Added tests for the parent element errors in smart mode

I have added tests for both void and normal elements which check that no errors are being produced by the parser when the elements have the right parent element.