Method to create test request

Moved from test case in action.php