unit test for nested requires
added one more test case for nested requires