Fix implementation of getpriority (bad copy n paste), and improve test
Merge pull request #27 from cgjones/fix-getpriority

Fix implementation of getpriority (bad copy n paste), and improve test