Adding some unit tests.

+ Adding unit tests for ObstacleSphere and ObstacleRectangle.