add test for observer