fixed test for 401 status
edit