BUG/TST: fix test that has been failing unnoticed all along