Tests for JSON API applications

All JSON API applications now have the option to include comprehensive tests and testing helper functions as part of the generated codebase.