Adding missing_counts and error_counts methods to the API
Adding raise_on_error to error_count
Removing duplicated test step function