Refactoring is done for the POST route test.