TST: tests for GH4812 (already fixed in master)

closes #4812