OpenDKIM (
http://www.opendkim.org) also includes a Lua-driven milter exercise program called "miltertest". We use it to exercise all of our run-time filter unit tests before every release.
Documentation:
http://www.opendkim.org/miltertest.8.html...with numerous examples in the source tarball.
-MSK