Use 'toHaveClass' in unit tests.