Fix #to_alfred test for ruby 1.8 compatible