Edited test_field routine