refactored houseAptRule and StreetSegmentRule so i could add in unit tests for them.

Added unit tests for houseAptRule and StreetSegmentRule