mirror namespace test cases with function as object