Fixed small error
Fixed some errors and created a test suite for dynamic calls