test logic impl