Field bit comparison introduced.

Fixed error in field offset comparison.
Two new tests added.