Build extensions and fix test script