Add a test script for plugin testing, and some asserts, no bugs fixed.