scan
use spawn
added scan
added advertising test