fixed merchant repo test and merchant repo code