Various tests and tweaks for Rules