[cs] Added test for #2874