Fixes the case where child views are created as part of the parent view (thus shortcutting the statechart doAdopt call). This fixes these child views so that they also check for resize when adopted.
Cleans up unit tests.