Add test case for relation integrity check in lists