Add unit testing courtesy of asunit

Adds basic unit testing.