Fixing failing test on 1.9.2 and 1.8.7