Fix alarm handle test