Adjust tests for before Ruby2.0