Records repo logic update
added test for Record