correct testing when inserting script