added generator test