Tests file structure, added dependencies
Fixed bug with not deleted temp keys