Fixing mock tests based on JWT