Added test to check omit for CheckPending when

Active Record is not included.