Fixed ant compile-tests error messages
Fix so partitioning will optimize single branch if statements in loops