Fix test metadata validation