Added tests for Heuristic 4