refactored unit test for nestedCtrl to be more general