Fix administrator includes phpcs
Merge pull request #1822 from wilsonge/phpcs

PHPCS fix administrator/includes
Add some system tests for front end. Thanks Puneet Kala!