Fixed 'PHP Warning:  strpos(): Empty delimiter' warning in unit test
Fixed typo
Fixed 'PHP Notice:  Undefined index: REQUEST_METHOD' notice in unit test
Merge pull request #869 from dymissy/master

Fixed some warnings printed out during unit test