Added test suite based on nosetests. Closes #27.