added tests for making sure that empty elements are not printed in xml/json