Add easy mock unit tests for observer pattern