Made getField(int) public to access it from tests