Fixed errors and did tests. Event Manager working properly