Fix events controller spec and factory