Test case for r177439 and r177440.