Querying relationships by the ID was not working.
Moving query tests to the RelationshipQueryTestCase. Added test case for id-based queries.