Added unit tests to protect Observer.