Fixed bug with footer preserve text

Added unit test to make sure we never reproduce it