update validator tests to be table driven

WIP for #13

As a part of http://24pullrequests.com/ I thought of fixing this issue. But it seemed quite boring so I tried writing a program that does it for me: [deiwin/test-converter](https://github.com/deiwin/test-converter). The code got way complicated and should probably use an actual language parser, but where it works, it works :)