Tests for loading objects with relations

Testing appropriate mapping and saving data to context.