added test_records and test for case 3