re wrote test for path expand global variable(rails /app)
converted attributes from arrays to hashes because I needed to have the path of the files as values of the files