As the title says, the MR adds a test for empty RelationTable.
Closes #528 (closed)
cc: @amathad, @sponce, @graven