Test case for GH #3965

Test case for GH #3965