TESTS: uncommented tests for #959 and #960 (and made a fix)
TESTS: added more tests for dynamic calls inspired by #959.