test code on dynamic method