Remove security context dependency from UserContextListener and replace test with a spec