Make unit tests friendlier to running independently

Many of the includes that are needed for the tests were missing. I ran into this while making phpmyadmin work on HHVM since our test runner runs each test in isolation.