add test for if file not exists