added test cases for Position class