test for shared observe and unobserve