adding script and tests