Added nicer unit tests to tophat.