use check_call() to make sure that exceptions are raised