Nose and Mock as tests_require deps, test command

- require nose and mock for tests, not for normal installation
- implement a test command in setup.py for invoking tests