reply logic test