Ensure Entity::initializeTrait returns a 1-length array containing the promise returned from initializeTrait, regression test added