fixed generate_email method
working tests