Generated html file is now created in the program directory. Some tests refactored for consistency.