polar boundary conditions and tests