improve scripted test