tests for #2258

tests for #2258