sample and test for nested view