Chapter 3, recipe 4: factor out test fixtures