Test renderable objects and fix some bugs.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>
Test the cookie structure

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>