added tests for drawElements() method
implemented EventManager with tests