test for config decorated function