Adding create_directory_and_move_file and sort out testing

Testing has been reorganised to have a unique folder for each test if
it has to save any files. This gets removed after each test.