Summary: This commit tests the executing of native ops and verifies the results. Several bugs are found and fixed according to these tests.