Add testing cookbook for unit test