test scan in cmd line only