* Added change- and dirty event (test and small refactoring)