Test logic.