Add tests for https://github.com/facebook/hhvm/issues/1357