- fix a bug when run command line tests
- add a reasonable check when add platform demo macro in Cmake script