solve sessions header during unit test