Test that passing a 0 weight doesn't produce wrong xml