update to java 1.7 and add tests for hmm learning