Add tests

Hey Paul,
  I added tests for validation - covering most rule styles and a couple of options e.g. :merge-fn