Fixing #149 - helper class bug in StdDev test

- Fixing a bug in `hasNextValue()` method of a helper used in the test,
- Added 2 tests for extreme cases in calculating standard deviation.
- Tightened the error margins for roundoff errors (leaving more than enough wiggle room).