test generator for different expand values