fix scripted test