added test for get definitions api call to words_test