Change file attach test to decorator.