[refactor] [test] refactored exceptions to own namespace and using a library marker interface
[test] previously not covered UndeclaredEventException in ObservableManager