Add test for PR4997. This has been fixed for a while.