Improved script tests.