fix market tests