add cascade.ALL and add test for model and rest controller