Unit tests for insert_edit.lib.php