MAHOUT-981, MAHOUT-983. Fixing test cases which fail intermittently. Build is passing on my machine ( even for the last commit ). Tried to identify all test cases, which can fail intermittently and fixed them.