tests for insert_before