In-memory Kafka writer didn't have any test. I'm adding a test that ensures that an exception is raised if the object doesn't have a unique_key when passed to the write_addition function.
For this, I have passed BaseModel(which doesn't have unique_key implemented) to the write_addition function and I'm checking if it raises a NotImplemented exception.
Related T2823