Add automated tests.

Adding tests but not using NCrunch this time.