restructued core.test's plugin build script