Better dataset validation.

- Update calculation's rules.
- Update tests.
- Add more user feedback.