Implemented the test case for insert_record function