Added tests using scripted plugin