Add test data parameters
Modify construction of file path
Reindent function
Add comment to function