Fixed tests and adjusted gemspec to support Rails4

The discussion: https://github.com/marcusg/brainstem/commit/bdcf3152e8e8468c1c26d42358465424ab557310