Adding testing functionality and test xmls.