app/test: change order of loops in hash function tests