use toEqual for exact matches. toMatch will only do partial matches, more useful if you have other elements inside <h1>