Add test to ruby:anagram. See #448