Problem occurred when there is just one (defaulted) parameter in the parameter list. Closes #1126
C default arguments are allowed, so migrated the error test to a proper test, as no error or warning is expected.