fix frontend tests by creating a fake session