Fixes unauthorized test