db unit tests bugfix for hhvm