Added validations for questions/answers. Refactored tests a little.