Rename deprecated EnumSet methods in unit tests.

I renamed the deprecated methods, resulting from the collection reform.