Fix script/testsuite to work with travis

Need to compile the extension before running the tests.