Add unit tests.
Updated the validate methods so that numeric values are not valid for string validation.