testing script with examples