unittest attachment + fix