Finished a rough draft of the query analysis controller tests and fixed a bug with the captcha on the registration page.