Tests for native function calling