Update test script and add Angular version resolution for Travis CI