Updated save.xq and some unit tests.