TopicAndPartition fix when partition leader = -1

Includes unittests and added mock dependency for unit tests