Adding new tests for default query visitor