unit tests for PositionRepository::newAction added