AUI-1553 Create unit test for contains

https://issues.liferay.com/browse/AUI-1553