junit test for position class