Verifies element identified by locator contains class specified.
