Added nosetests unittest and pre-commit hook with it