JC: changed first state to initial_state. Added Rails.env.test? in both model and routes.rb for spec. Spec passes.