[SPARK-2515][mllib] Chi Squared test

`~=` -> `~==`. The latter tells more when something is wrong. (and please also update other places)