Add test for squeue --priority

see bug 1035