Fix unit test for native