Added skip for internal classes or classes without source.

New test was added to check this. New logic implemented to handle and fail on php errors.