BUG: fixed issue in test suite affecting some versions of pandas or numpy regarding integer array casting