Refactored tests into a new (sub)package.
Set-up repo to use nosetests.