testing accuracy should be sufficient at 10^-13
added missing xml attribute annotation
implemented proper equality testing for tags