refactoring specs + implementing click tests
exercise 5.6.3 from tutorial