Fixing scripts for building and running tests.