A robust battery of tests was used to assess the cognitive domains of attention , memory , mood , visual-spatial skills , motor ability , processing speed , and executive functioning 10 days preoperatively and postoperatively at 6 weeks and 6 months .