Unit and integration tests

NB. Run locally, not as part of ant build.

Also prevent RuntimeWarning invalid value (dividing by 0) in coefficient of variation,
and prevent ValueError if there is not enough training data.