Added test for loadrules2
Finished test for loadrules2, made the Snapshot class testable