added Test for genJson