fixed unit test for observer