Code coverage for abstract provider and improved handling for undefined values