Correct equality check in base generator test.