Add test for REGX kernel api