Refactored test-json out into own file.