Add a test for this.