Using spies
added publisher observer