Fixed bug and added test
Updated test
formatting
merge hchandl: Fix for Column not found error

Merge pull request #1369 from hchandl/sql-layer/columnNotFoundError
https://github.com/FoundationDB/sql-layer/pull/1369