Add BoundaryChecker including tests