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

fixes #1567