Add checks on null for created observer.

Make correct indent in tests.
Make compare functions of ItemIterator as free functions.
Provide first unworked test for item iterators.
Add ability to debug tests via script.
Implement == and != operators for ItemIterator.