Fixed MQ tests: added limit iteration.