railscast 11 and 12 refactoring tests