updated test-short-record method to take typed-record