Added test for CASSANDRA-7831