Add test for observer