Adding databse migration testing code for chapter 7.