Added tests for relations.