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?)