Tests: Attach to document instead