AUI-1552 Create unit test for capitalize

Ticket: [AUI-1552](https://issues.liferay.com/browse/AUI-1552)