[Security] Fixed test cases of the Csrf sub-component