testcase for extending natives