Fixes the test not to freeze on HHVM

This resolves #475