add phpspec tests for paginator, improvements for editorial comments