Test case and fix for project_rel index