Add a test related to creating Observables.

This detects a bug present in 7609c89943bf4b73ccde74cbc86b8be2b0896554
and fixed in 5f28acc42c36d79ae6adc66f78c40ec0810912d6.