moved test scripts to prototypes/, minor fix

Moved test scripts to the prototypes directory and renamed the 'ord'
function because it is a builtin in /usr/xpg4/bin/awk on Solaris.