add cascade. set up unit tests