Producer and Consumer Pattern Testing