generate cubes and some test materials