unit test for array observing