allow dynamic arguments count in ClassProxy
add unit-tests for dynamic arguments