12 test cases.

Signed-off-by: Bo <fb8fb8@gmail.com>