Fixed a bug for mock observer.

Fixed an issue with observer mock comparing notification names incorrectly.