added unit tests for helpers and PositionGenerator