added factory and updated events_controller spec