Added test for building instances of nested widgets