adds more robust version of test for merchant