impl matchOwners, fixed errors, added some testdata