Finished minimal test cases for process_request function