tests; add example of nested schemas working

closes #1