Add test case for request preparation.