fix compile errors in tests and examples

Created by  ubnt-intrepid  on January 10, 2021
63PFETNDJ7MIPCUKAQ5LXQ6DMADU6MXFCMKA2XLSP4DELKTPNEFAC
Change contents