Test script before saving it.