Wrote unit tests for Goodreads; refactored