added another test for fn as config