Fixed testing of legal subgenerator