Add test case for `riscv expose_custom`.