MRG Add tests and fix stupid bugs in latent node crf

Some fixes an tests for EdgeFeatureLatentNodeCRF