corrected condition on jboss-specific empty tag removal (fixes issue 115 thanks jocelyn)
fixed test for issue 34 and docstring in issue 60