should we explicitly replace BORDER_DEFAULT in the assert with BORDER_REFLECT_101? because if we sometimes change the BORDER_DEFAULT, the assert will not longer be true