Added MerchantApi and basic tests