Fixed EventManager as a module

Also moved test -> spec.