Fixed 'PHP Warning:  strpos(): Empty delimiter' warning in unit test
Fixed typo
Fixed 'PHP Notice:  Undefined index: REQUEST_METHOD' notice in unit test