Added validation and tests for multiple values of the same type