Update gem file and fix controller tests.