Random JS object generation for tests