fixed wrong generator test