Test framework

~~assumes PR #149 (documentation)~~

testfiles aren't compiled, so they don't bloat the binary, and no need to call 'make' when tuning the tests