Add tests for CASSANDRA-7990