test dynamic def