KZ API to 0.5.11 ; Tamas' fix for flaky test.