Refactored centerChildSpec (and centerChild.js, accordingly) to be an e2e test