validation & tests. End chapter 7