Unit tests for APITest insert.