upgrade rails, update unit tests