Moved tests to a 'tests' directory
Compatibility with Python 2.7