Change from rewire to sandboxed-module and properly set the platform for tests.