Refactored the xquery script for rendering the test plan.
Added the $format parameter to some unit tests, and renamed them
accordingly.