Fix tests for custom fields: load needed modules

See PR #1021.

Signed-off-by: Alex Coles <alex@alexbcoles.com>