Remade test files used for htmlWriter tests so that they have pretty printing format, added test cases for file initialization and whitespace handling.