TST: Make test compatible with pandas 0.7.x