Add a test for records with default function fields