check for page name in addQuery
fix tests
Added missing php version constraints
Fix code and update change log.
Merge pull request #4193 from GrahamCampbell/4.1-composer

[4.1] Added Missing PHP Version Constraints
Fix merge conflicts.