test dynamic functions