Reintroduction of unit test of change listeners.

Long time ago the unit tests if the change listeners were disabled. They are now reintroduced in another source file and almost rewritten.

@bmunkholm @emanuelez 
are there dependencies between tests? Why start with incrementCount and not just initializeCount?