Expanded ruleset sanity testing

Part of #451.

@jsha -- I put this in make-sqlite instead of trivial-validate, since it looks like trivial validate only operates on the sqlite DB.