error message for missing parameter and error type check in tests