Fix quality tests