Removed useless code in test of PublicApiAccessAuth