add coverage for execption handling