update integration tests to work with external scripts