fixed various bugs in tests for fields