added test to verify that the SQL generated is correct
added functionality to build WITH RECURSIVE query properly with column names included in the query
WITH RECURSIVE query now uses column names defined