Add more testing and support
Move testunit to test, add toplevel command support