fixed sporadically failing test