Initialize resource's listeners.
Turned listeners into observers.
Updated test.