Fix tests for script autobundling