Fix diary file creation test