Add tests (run with nosetests).