Fix tests when BINDIST=YES