Improved validation of requirements. Added tests of requirements validators.