Porting to use cookbook yum ~> 3.0. Fixing up style and tests