apiserver: fix sporadically failing test