[rai] Fix extraction and update _TESTS