Added testcode to check if everything is deleted properly, cascading wise.