Add testing.py for travis tests.