Fix failing tests
- CriteriaBuilder has query property, but HibernateCriteriaBuilder doesn't
Add debugger config for tests when "-Ddebug.tests=1" has been specified