Add ActiveRecord::RecordNotFound catching. Add tests.