AUI-1553 Create unit test for contains

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