Fixes script tests