Improved request parsing
PHP Unit Tests stage 1