test: add observer tests for event emitters