Improving test and testing with a real file