Simple test for RaceFactory and a fix for a bug it found