add merchant/merchant repository classes and tests