libvirt.test: Improve setmaxmem,setmem test for lxc driver VM

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>