Added unit test for validators.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>