generator test