Add unit test for all passed case and fixed problems unit test found.

Refs #9874