test/hash: fix off-by-one check on core count