CQL tests and error handling