Test class refactoring

The package junit.framework is deprecated so I refactored all the test classes so they use the org.junit package.
I also fixed a typo in the ant build file.