test file functionality