Adding an AuthenticationException

Ok with the AuthenticationException, but what I wanted to fix was the expired token issue in the Rails app (there are other reasons for the authentication to fail). Should I rather test the error message in the Rails controller? (I thought it would be better design to do it here, but that's ok with me)