Fix #1567 and add tests to cover getChildView taking a model