add referential integrity test