fixed tests for smart content; fixed tags in query builder