Fix 16bit rank filter test in python 3.x