Add test for nested objects

Signed-off-by: Tsuyoshi Ozawa <ozawa.tsuyoshi@gmail.com>