Mock session in test