Refactor tests with new style

Change the way the test cases are invoked from setup.py
Update travis dependency installations