Added test cases for DataCollector and BashCodeGen.
Thes tests can be executed even without bash. Instead of testing the whole
shell script, they test individual aspects of the data collection or code
generation process. Mostly one test per method. Already found and fixed a
bug in the method generating the version information comment.