fix scan test