Moving CDQManagedObject's file.
Adding an important test for relationship query.
integration tests