test/hash: rectify slave id to point to valid cores