Updated getSerializedRecordSpy to handle promises