added tests to see if json views use api correctly