add a test case trying to test next.foo()