Fixed issue with column pruning when using requested schema

Using a requested schema on the local side will result in problems with column pruning because the requested schema is incorrectly used during the prune operation.

This fix will allow for the correct schema for pruning with requested schema. I added a test to capture the issue.