Add centering unit tests