test before calling LIBSVM to do mask-region train