added diagnostic code (why does test fail on travis?)