Improved support for observables and subscriptions
Added test case