Fixed Boost.Test compatibility with future Boost's.

Fixed bad test code in enumerate which was failing on FreeBSD.