fixed bug in the constructor differences and add tests to Difference.java