Complete rewrite of tests to move to nose testing framework