generation tests