Fix relation test filenames

This change also refactors the relation tests to directly test the
Element class. After all, this is what the relations are being
ultimately used in, and also 119 insertions, 147 deletions is a huge
win.