unit tests and xslt output refinement