Basic unit testing framework, copied from trunk. Not fully hooked together yet.