added queue test
Fixed incorrect comparator and removed dead code
performance tweak
Merge pull request #196 from apigee/USERGRID-1768

Usergrid 1768