add test for matadd sortkey