Abstracted the behavior test stream generation