Unit tests for index calculation and BoundaryConditions

- implemented unit tests for index calculation in CellContainer
- unit tests for impose_boundConds
- unit tests for BoundaryCondition subclasses
- fixed several bugs