Fix null pointer exception at janerator tests