Added a simple test case and added support for HHVM (version: 2.2.0b1)