ezp-21977 fixed units tests for compatibility with php 5.3