Refactor test_unauthorized() to leverage pytest parametrize mark