Added additional check for the type of the datasource (which needs to be a BasicDataSource for the Ant tests)