Jesse flagged this as a potential bug internally but this looks correct to me. Adding a test case so that we don't regress in the future.