add unit tests for Position