Added generation of a compilation script and fixed a few more bugs in test specification.