Make tests pass on HHVM, add code coverage