Made several fields in PatternHeuristic private and made getters and setters for them so that the test continues to work.