Write class that testing loading throw JSON, but not working