Initial commit unit test for endorse_resource() native api