fixed generator test