Update query count tests

New technique in get_perms increases query counts by one in three of the
tests