Library tests

This somewhat resembles the way I do the tests in obuild-aldor. It still needs a proper test driver that does diff and produces test reports.