fix warning on EXPORTED_FUNCTIONS, and improve test