update validator tests to be table driven

WIP for #13
Merge pull request #22 from deiwin/update/tests-to-be-table-driven

update validator tests to be table driven