Fix test_throws that was causing issue