Fixed notify test script
Updated gateway to support Rails 4