You cant travel abroad without affecting residence time for citizenship, unless you are employed in some very specific circumstances. Keep track of all your days outside of the country between now and the date you apply. Don't guesstimate. Don't worry about the test; its super easy, but yes, you should learn all you can about Canadian history and civics, if you want to be Canadian. Learn French too while you are at, if you don't know it already.