Test cases for circular buffer added.