LPS-28990 Test adjustments

Hi Tamas,

I've sent this pull to Dániel before but he asked me to forward it to you:
https://github.com/KocsisDaniel/liferay-portal/pull/254

Generally, he seemed to be okay with the change—so, you can talk to either him or me if you any concerns.

Thanks,
Daniel