Test script moved to the root directory
Tests rewritten with pytest instead of nose (running in Python 2.x)