created JUnit test for Obstacle class