[tests][bugfix] fix fail condition for GitHelper#clean_reset