Add some tests for relations