Use check_call instead of assertions