add tests to test that invalid and valid inputs on questions
fix pending question index spec, now user can click on a link and redirect to show page