Added tests for Mahout vectorisation.

Randomized testing framework rocks.
Typo fix.