added cookie login in test enviroment