testing and generators