Rewrote tests because assertTag is deprecated in the latest PHPUnit.