We should add a test for this.