Added some basic unit tests for collision detection.