small improvements to the xslt.
Added a few more simple tests.