Add test on boundary conditions