fix function availability test and version number