Add some specs and allow warn_threshold and error_threshold to be specified in params.