Fixes #6143 - Mocks session for ElggEntityTest