Add regression unit test for previous fix.