Fix code review

Declare test URL
Flatten test case
Use unique cookie