added ant build and fixed some tests