Tests for https://github.com/silverstripe/silverstripe-framework/pull/3347

These won't pass until the framework PR is merged. :)