add missing message model; upgrade to Rails 4.0.1; fix failing tests