KVO: fixes and tests for automatic notification