I thinks it's better to not check the value. You can set a wrong value, for example "/$@". When you  use the XML it will get a expected error. And my error_test contains such wrong value.