Refactor test to use shared examples (Lesson 5 Ex. 1)