rewritten test to pass hhvm