Adding DELETE CASCADE functionality, tests