auto gen test correctly