added test script replaced function definiions with shortcut