test a script