fix a bug in question action and add more test cases