Make testing part of the workflow

- Use test runner for Travis and Git pre-commit hook
- Run Nose on src/ dir
- Test stub in test/