Change name of test to better reflect what it does
Enforce the uniqueness constraints at the db level
Return the missing dependencies when deps are missing
Truncate tables in the correct order