Add a RelationNotFoundError and test that it is thrown when appropriate