test: Convert test cases to JSON

Will make it easier to re-use them in php-cssjanus and
python-cssjanus in the future.