Tests for replication of relations with custom collection classes