Fixed tests to expect invalid_argument exception for now since bad_function_call was not cross-platform