unittest: Add unit tests to the scons framework.
Also fix the unit tests so they actually compile correctly.
9 files changed