Added a nested version of insert test case