added test for error with param