Typecast the database identifier to str.
Add mock of get_keyspace in consumer test.