Improve handling of __version__
Add a first test file

To be used with py.test
Integrate tests with setup.py