testing the commands and their layerindices