Refactored Serialization Test of Rules to integrationTest source directory