Fix a few tests and added code to save dot file on initial install