Fixed a bug in the gen_tests script for lgr_cube