fix w>=21 for Vector encoder tests
fix w>=21 for SimpleVector encoder