refactored test code and added reusable methods for synonyms antonyms definitions and get examples