Test interface and some debugging for fortran implementation.