add and test xmldecl