updated tests; added length check for anagram