WICKET-4941 Component.initModel() does not cause parent models to be initialized

Fix the test as explained at http://markmail.org/message/mxyja6rutrghwo6v

(cherry picked from commit 51094d1ef5193761378cb8e2f6690b07fa0753cd)