[ fix #49834805] added tests with invalid parameters
[fix #49834805] added specific error messages