[BACKLOG-1562] Adding Rererential Integrity Tests