You can take $S^1\vee S^2\vee S^3$ and then use the Hopf fibration from $S^3$ to $S^2$ as the attaching map for a 4-cell onto the 2-cell.  This has to have the cohomology (and homotopy) as you described.   

(Having now seen Vitali's answer, I guess this is the same as his, but I thought I might as well give this answer anyway.)