How to test a native function?

Is there any tests for the native functions?

We test these the same way as we test non-native Move functions: writing Move functional tests. For example, here are some tests for the vector native functions: https://github.com/libra/libra/blob/master/language/move-lang/functional-tests/tests/move/natives/vector.move.