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