Adds validation and test cases.