Add more tests and a check for unknown relation types.

1 job for master in 4 minutes and 31 seconds (queued for 2 seconds)