simplify test for php 5.4