Bug Fixes and Added CommonEvents

Fixed a bug and added the Class CommonEvents to EventManager. Static variables inside this class hold IDs for common events. A test for this was also added.