Added fields method, made constructor private.
Updated tests for FreeBSD.