Testsuite

ok so, i fixed up the tests and knocked up some makefiles to drive them... it is not quite done yet, but i thought you maybe want to look at it and comment :)

one question is - what do you think is a good way to compare reference output with the output of the tests? a small tool that is included in the test suite? (this can not be done using just "make" i guess?)
does that really matter? i prefer not to use additional variables if it doesnt significantly shorten the "code" (which it would not in this case)