Added getObserver(id) and some tests