small refactor the code of test case which use multiple times post variable ...

Re factor the code of test case which use multiple times post variable on the function and also used older rocket sign