Fix InvalidAuthenticationTest

InvalidAuthenticationTest() was failing due to the Exception type change.