added rspec tests fot file_name