Improve tests adding the new test infrastructure as in plugin builder

already done in upload-website branch