fix scan command test