testing binary distribution