Test for update cascade and restrict