adding test case for logical-extract