Add more unit tests for RVFunctions.