TST regression tests for GH3836

cc #3836

Added test for example from OP (which is not working in 0.11 but is fixed in master).