Add test for running put on a directory