parser: Fix all occurances of TESTS_DATA_DIR

And use g_test_build_filename().