added tests for fetching unique word