Fix quality gates tests