feat(view): add onChange implementation to view.

I think we should just use `import {*} from 'test_lib/...'` (in tests only.)