added generator tests