Added unit tests for native