Surprise! Spencer joined the "A" team after seemingly freaking out about Toby. While it was just to help the rest of the Liars, we didn't know that back in season three. This became the third fake out about the "A" team, and there have been plenty more since.
Source: ABC Family