fix ant test build compile error due to unable to recognize dynamic clas...

...s types