#13: Added trivial form of selftest. This will require some improvements.