added unique constraint on the question model and fixted several tests