SelfContainedQueries - tests