TST: test for #2637

Added test for BUG #2637