Added test for testing content of field element tags and fixed bugs found by this test in the population of field element values.