add tests for loading/storing rules to disk