add random lpa json generator and functional tests for these json files