spec refactor
checking nil when registering observers