Allow multiple mandatory rules and add unit tests