Add test for exception handling on RelationCacheLoader