Fix request_base_test

Don't use incorretly the string's substring constructor