Refactor and test #file
Specs for #extract_filename
Refactor
Add specs for #x_stylesheets_be