Added test for boundary condition