Test functions for CRF routines