add tests for addBoundary