Added unit test to verify that users cannot access failed jobs