Added PHPUnit tests for request classes