We should also write a test for this in `compose.js`