Move require json to test