improved tests

added file attribute