Add some test cases for Chapter 10/Ex_10_4.h

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