fix the compile error about luabindings in release version and add the `RichText` test cases