[S] Add preprocessor define NOM_RUN_TESTS_HEADLESS

* For travis-ci builds