add signature generation to Ant task and upgrade test to JUnit4

This should fix #14 . Testing welcome.