add missing json templates
add tests for all json and csv views