Refactor core tests

Most of the refactoring was automated using a Perl script.
Port 611-queryparser_syntax.t to C
Remove method TestBatch#Plan
Make method TestBatch#Run_Tests abstract
Change type of test counts from int64_t to uint32_t
Move code to unbuffer stdout
Move TestBatch class to Clownfish::Test