Added tests to ensure footer is created properly and only when it should be