fixing marketplace.apply tests