test case for correct addition of filetype xml element