Add a test for space-replace middleware gizmo